﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SArenaPlayerRankUpdate extends IMessageBase
    {
        public var copyCode:int;
        public var channelId:int;
        public var lvLimit:int;
        public var zoneBToplevel:int;
        public var openDays:int;
        public var rankInfo:Dictionary;
        public const _type:int = 7014;
        public static var _regist:SArenaPlayerRankUpdate = new SArenaPlayerRankUpdate(true);

        public function SArenaPlayerRankUpdate(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaPlayerRankUpdate();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyCode);
            param1.writeInt(this.channelId);
            param1.writeInt(this.lvLimit);
            param1.writeInt(this.zoneBToplevel);
            param1.writeInt(this.openDays);
            DictIdSArenaPlayerRankHelper.write(param1, this.rankInfo);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.copyCode = param1.readInt();
            this.channelId = param1.readInt();
            this.lvLimit = param1.readInt();
            this.zoneBToplevel = param1.readInt();
            this.openDays = param1.readInt();
            this.rankInfo = DictIdSArenaPlayerRankHelper.read(param1);
            return;
        }// end function

    }
}
